import {configureStore} from "@reduxjs/toolkit";
import userReducer, {UserStateType} from "./userReducer";
import componentsReducer, {ComponentsStateType} from "./componentsReducer";



export type StateType = {
    user:UserStateType,
    components: ComponentsStateType
}
export default configureStore({


    reducer:{
        //分模块的
        //用户模块
        user:userReducer, //userReducer是user模块的reducer

        //组件信息共享模块
        // // 没有 undo
        components: componentsReducer,

    }
})